﻿using EmoneyWeiXinCommon;
using EmoneyWeiXinEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmoneyWeiXinDAL
{
    public class WXuserDal1
    {
        public WeiXinUserInfo getWxUser(string openid)
        {
            string sql = "SELECT * FROM dbo.wxuser WHERE openid=@openid";
            SQLTools tool = new SQLTools();
            tool.AddSqlParameter("@openid", System.Data.SqlDbType.VarChar, 50, openid);
            return SQLHelper.GetDataByColumns<WeiXinUserInfo>(Config.Default, sql, tool.GetSqlParameters());
        }
    }
}
